﻿using Orchard.Localization;
using Orchard.Security;
using Orchard.UI.Navigation;

namespace So.BackendAdditions {
    public class AdminMenu : INavigationProvider {

        public Localizer T { get; set; }
        public string MenuName { get { return "admin"; } }

        public void GetNavigation(NavigationBuilder builder)
        {
            builder.Add(T("Content"), menu => menu
                .Add(T("Grouped items"), "0.1", item => item.Action("List", "Admin", new { area = "So.BackendAdditions" }).LocalNav())
            );
        }
    }
}